HI all,
After some great suggestions on how to better configure my little laser, I thought I'd try my luck on any suggestions on the plan for my mill.
It's a large, servo driven, 3 axis machine, with brushed DC motors, differential encoder feedback, +/- limit switches on each axis, and a few user input controls.
For the driver outputs, I plan to use:
X-axis analog +/-10V out and GND - DAC0, JP11 Pin1 and 9
Y-axis analog +/-10V out and GND - DAC1, JP11 Pin2 and 10
Z-axis analog +/-10V out and GND - DAC2, JP11 Pin3 and 11
For the axis encoder inputs, I plan to use:
X-axis encoder (8 wire: A, /A, B /B, Z, /Z, +5V, 0) - Differential input 0, JP1 A0+, A0-, B0+, B0- (No Z index connection yet),
Y-axis encoder (8 wire: A, /A, B /B, Z, /Z, +5V, 0) - Differential input 1, JP1 A1+, A1-, B1+, B1- (No Z index connection yet)
Z-axis encoder (8 wire: A, /A, B /B, Z, /Z, +5V, 0) - Differential input 2, JP1 A2+, A2-, B2+, B2- (No Z index connection yet)
Q - I will take +5V from JP8 pin 14, but which connector on the Kanalog would you suggest I take gnd from for these encoders?
Q - I assume it is OK not to use the Z index pulses, unless I wanted them for more accurate homing?
For the limit switches, I plan to use:
X-axis pos limit switch - Opto Input 0, JP15 Pin 1&2
X-axis neg limit switch - Opto Input 1, JP15 Pin 3&4
Y-axis pos limit switch - Opto Input 2, JP15 Pin 5&6
Y-axis neg limit switch - Opto Input 3, JP15 Pin 7&8
Z-axis pos limit switch - Opto Input 4, JP15 Pin 9&10
Z-axis neg limit switch - Opto Input 5, JP15 Pin 11&12
For moving the table around, there are 3 'handy wheels', that are simply 4-wire single-ended encoder wheels. So I was going to bypass the Kanalog differential inputs and connect these straight to the Kflop. For the handy wheels, I plan to use:
X-Axis handy wheel (4 wire: +5V, GND, A, B) - Connect A&B to Kflop Encoder 5 input , Kflop JP5 pin 3&4
Y-Axis handy wheel (4 wire: +5V, GND, A, B) - Connect A&B to Kflop Encoder 6 input, Kflop JP5 pin 5&6
Z-Axis handy wheel (4 wire: +5V, GND, A, B) - Connect A&B to Kflop Encoder 7 input ,Kflop JP5 pin 7&8
Q - Once again I will take +5V from JP8 pin 14, but which connector on the Kanalog would you suggest I take gnd from for these encoders?
I also have a momentary switch on the machine to power on/enable drives. Basically the drives stay completely dead after the mill is powered, until this switch is pressed.
The intention is to write a thread on kflop that starts on power up and wait for this 'enable' switch. After the enable switch is triggered, kflop will perform it initialisation of I/O (handy wheels, coolant switches, etc), enable the drives and start to servo, even if not connected to Kmotion or KmotionCNC. I want it this way so I can use the mill manually even if the PC is broken/missing/slow to bootup/etc. Does this sound like a reasonable plan?
Any suggestion on simplifying the connection strategy, particularly around the two types of encoders that I need to hookup, are most appreciatied.
Cheers,
Tim